package com.qkbb.admin.kuibu.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;


import com.qkbb.admin.kuibu.qkbb.fragment.Recommend;

import java.util.List;

/**
 * Created by admin on 2016/2/4.
 */
public class PagerAdapter extends FragmentStatePagerAdapter {
    List<Recommend> list;

    @Override
    public Object instantiateItem(ViewGroup container, int position) {

        return super.instantiateItem(container, position);
    }

    public PagerAdapter(FragmentManager fm, List<Recommend> list) {
        super(fm);
        this.list = list;
    }

    @Override
    public Fragment getItem(int position) {

        return list.get(position);
    }

    @Override
    public int getCount() {
        return 6;
    }

}
